#!/bin/bash

if [ ! -f /tmp/lock_populate_xenia_netcdf ]; then
  touch /tmp/lock_populate_xenia_netcdf
  #`../misc/xml2env.pl`
  #./obskml_to_postgres.pl cormp /var/www/html/obskml/feeds/cormp/cormp_latest_obskml.zip
 # ./obskml_to_postgres.pl carocoops /var/www/html/obskml/feeds/carocoops/carocoops_latest_obskml.zip
  ./obskml_to_postgres.pl nccoos /var/www/html/obskml/feeds/nccoos/nccoos_latest_obskml.zip
  ./obskml_to_postgres.pl scnms /var/www/html/obskml/feeds/scnms/scnms_latest_obskml.zip
#  ./obskml_to_html_content_sqlite.pl cormp /var/www/html/obskml/feeds/cormp/cormp_latest_obskml.zip
  ./obskml_to_postgres.pl nos /var/www/html/obskml/feeds/nos/nos_latest_obskml.zip
  ./obskml_to_postgres.pl ndbc /var/www/html/obskml/feeds/ndbc/ndbc_latest_obskml.zip
  ./obskml_to_postgres.pl nws /var/www/html/obskml/feeds/nws/nws_latest_obskml.zip
 # ./obskml_to_html_content_sqlite.pl carocoops /var/www/html/obskml/feeds/carocoops/carocoops_latest_obskml.zip
  #./obskml_to_html_content_sqlite.pl scnms /var/www/html/obskml/feeds/scnms/scnms_latest_obskml.zip
  #./obskml_to_html_content_sqlite.pl nccoos /var/www/html/obskml/feeds/nccoos/nccoos_latest_obskml.zip
  rm -f /tmp/lock_populate_xenia_netcdf
fi
